package com.zr.service;

import com.github.pagehelper.PageInfo;
import com.zr.pojo.Goods;

import java.util.List;

public interface GoodsService {
    //根据商品类型查询列表 销量前4
    public List<Goods> selectTypeAll(String type);
    //根据商品类型查询列表
    public PageInfo<Goods> readmoreShop(String type, Integer pageNum, Integer pageSize);
    //根据商品id查询商品对象
    public Goods selectOnt(Integer gid);
    //查询所有商品销量前2的商品
    public List<Goods> selectNumAll();
    //模糊查询
    public PageInfo<Goods> selectLike(String title,Integer pageNum, Integer pageSize);

}
